hvm/vmx: WRITE_MSR() macro hygene
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 9 Jan 2015 16:27:04 +0000 (17:27 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Jan 2015 16:27:04 +0000 (17:27 +0100)
commit463a991e51835ced8d440d37959d5bfc1f79417b
tree5a9931873c0a20dabdfb5538c050f5a35df57c9f
parent9281ad48e948d715f17c38049216fcb9933092bc
hvm/vmx: WRITE_MSR() macro hygene

Use the standard "do { } while ( 0 )" semantics, and don't hide the break
statement, incase this macro wants to be used anywhere outside of a switch.

No functional change, but it is now clear that long_mode_do_msr_write()
doesn't have fallthough for the STAR, LSTAR and SYSCALL_MASK cases.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c